package com.example.demo.config;


import com.example.demo.encrypt.Encryptor;
import com.example.demo.encrypt.RSAEncryptor;

/**
 * 加密类枚举
 *
 * @author miwenming
 * @date 2019/07/31
 */
public enum EncryptorsClassEnum {
    RSA(RSAEncryptor.class);

    private Class<? extends Encryptor> clazz;
    EncryptorsClassEnum(Class<? extends Encryptor> clazz) {
        this.clazz = clazz;
    }

    public Class<? extends Encryptor> getClazz() {
        return clazz;
    }
}
